<?php

/*
these are some modif that I apply to blaogy.org
*/

// allowing some more html elements

add_filter('mce_valid_elements', 'blaogy_mce_valid_elements', 0);

function blaogy_mce_valid_elements($valid_elements) {
         $valid_elements = '*[*]';
         return $valid_elements;
}

/*
//if($_REQUEST['debug']) {
	add_filter('mce_plugins', 'blaogy_mce_plugins', 0);

	function blaogy_mce_plugins($plugins) {
			 //$plugins = array('flash');
			 array_push($plugins, 'media');
			 return $plugins;
	}

	add_filter('mce_buttons', 'blaogy_mce_buttons', 0);

	function blaogy_mce_buttons($buttons) {
			 array_push($buttons, 'media');
			 return $buttons;
	}

	remove_filter('content_save_pre', 'wp_filter_post_kses');
//}
*/
?>